Skip to content

feat(auth): implement SigV4 authentication for REST catalog#616

Open
plusplusjiajia wants to merge 2 commits intoapache:mainfrom
plusplusjiajia:sigv4
Open

feat(auth): implement SigV4 authentication for REST catalog#616
plusplusjiajia wants to merge 2 commits intoapache:mainfrom
plusplusjiajia:sigv4

Conversation

@plusplusjiajia
Copy link
Copy Markdown
Member

Implement AWS SigV4 authentication for the REST catalog client, following Java's RESTSigV4AuthManager and RESTSigV4AuthSession.

  • Extend AuthSession::Authenticate() with HTTPRequestContext (method, url, body) for SigV4 request signing
  • Add SigV4AuthSession: delegate-first auth → relocate conflicting Authorization header → sign with AWS SDK
  • Add SigV4AuthManager: wraps delegate AuthManager (default OAuth2), resolves credentials from properties or default chain
  • Body hash matches Java's SignerChecksumParams output: empty body → hex EMPTY_BODY_SHA256; non-empty body → Base64(SHA256(body))

@plusplusjiajia plusplusjiajia force-pushed the sigv4 branch 5 times, most recently from bfc98f7 to 9ddbdbd Compare April 11, 2026 09:35
@plusplusjiajia plusplusjiajia force-pushed the sigv4 branch 3 times, most recently from 915c87b to d1c0732 Compare April 11, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant